﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gert3D
{
  /// <summary>
  /// Represents a sphere with a center and a radius.
  /// </summary>
  public class Sphere
  {
    private Vector3 _center = new Vector3();
    private double _radius = 0;

    /// <summary>
    /// Create a new sphere with the given radius centered at (0,0,0).
    /// </summary>
    /// <param name="radius">The radius of the sphere.</param>
    public Sphere(double radius)
    {
      _radius = radius;
    }

    /// <summary>
    /// Creates a new sphere with the given radius centered at the given center.
    /// </summary>
    /// <param name="center">The center point of the sphere.</param>
    /// <param name="radius">The radius of the sphere.</param>
    public Sphere(Vector3 center, float radius)
    {
      _center = center;
      _radius = radius;
    }

    /// <summary>
    /// Gets or sets the center of the sphere.
    /// </summary>
    public Vector3 Center
    {
      get { return _center; }
      set { _center = value; }
    }

    /// <summary>
    /// Gets or sets the radius of the sphere.
    /// </summary>
    public double Radius
    {
      get { return _radius; }
      set { _radius = value; }
    }

  }
}
